<?php

namespace App\Services\Tools;

//参数验证
class ParamVerify
{
    public $status = 1;
    public $msg = '';

    //手机号
    public function mobile($mobile)
    {
        if (!preg_match("/^1[3456789]\d{9}$/", $mobile)) {
            $this->status = 0;
            $this->msg = '手机号格式错误';
        }
        return $this;
    }

}
